// *** LICENSE HEADER ***
// Filename: ./statusbar.h
// This file is part of Nodewarz 0.1
// Nodewarz is a 3d OpenGL strategy game
// Copyright (C) 2007 CZestmyr
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
// *** END LICENSE HEADER ***
#ifndef NODEWARS_STATUS_BAR_H
#define NODEWARS_STATUS_BAR_H

#include <cstring>
#include "game.h"
#include "engine.h"
#include "fonts.h"
#include "playerlist.h"
#include "player.h"
#include "definitions.h"
#include "helperfunctions.h"

class game;
class fonts;

//Class for displaying some status texts on the screen
class statusBar {
    public:
        statusBar(game* newParent);
        //Set the statusbar message
        void SetMessage(const char* msg);
        //Draw the statusbar
        void Draw();
    private:
        //Pointer to the game class that owns this object
        game* parent;
        //Font drawer object
        fonts* fontDrawer;
        //Buffer for the whole statusbar
        char statusBarBuffer[256];
        //Buffer for the status message
        char message[128];
};

#endif
